package com.kedacom.ctsp.registry;

import com.kedacom.ctsp.registry.controller.UserAccountController;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

/**
 * registry 配置
 *
 * @author sunchenjie
 * @create 2018-12-15 13:21
 **/
//@Configuration
//@ComponentScan
public class RegistryConfiguration {

    /**
     * @return 用户账号相关controller
     */
    @Bean
    @ConditionalOnMissingBean(UserAccountController.class)
    public UserAccountController initUserAccountController() {
        return new UserAccountController();
    }

}

